package com.yunzai.secure.service;

import com.yunzai.secure.domain.LoginUser;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.security.core.Authentication;

public interface ITokenService {

    public String create(Authentication authentication);

    public void update(HttpServletRequest request, LoginUser loginUser);

    public String delete(String token);

    public Authentication getAuthentication(String token);

    public LoginUser getLoginUser(String token);

    public String getUUID(String token);

    // 使令牌失效（加入黑名单）
    public void invalidate(String token);
}
